<%@ page pageEncoding="UTF-8"%>
<%if(session != null) {
	String error = (String) session.getAttribute("err");
	if(error != null) {
		if(error.equals("error")) {%>
			<script>alert("Błędny login lub hasło");</script>
		<%}
		session.removeAttribute("err");
	}
}%>
<script type="text/javascript">
	function onBlur(el) {
		if (el.value == '') {
			el.value = el.defaultValue;
		}
	}
	function onFocus(el) {
		if (el.value == el.defaultValue) {
			el.value = '';
		}
	}
</script>
<form id="log" name="log" action="LogInServlet" method="post">
	<input type="text" id="login" name="login" value="login" size="12"
		style="font-family: sans-serif;" onblur="onBlur(this)"
		onfocus="onFocus(this)" />
	<input type="password" id="haslo" name="haslo" value="haslo" size="12"
		style="font-family: sans-serif;" onblur="onBlur(this)"
		onfocus="onFocus(this)" />
	
	<input type="submit" value="Zaloguj" />
</form>